a + b + c + d = n

 
Numbers to 10
Row and column totals are red
Diagonal total is green